package com.jiyun.model.sign;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jiyun.vo.chengyuan.ChengyuanVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 【-residents】实体类
 *
 * @author ???
 * @since 2024-09-27
 */
@Data
@Accessors(chain = true)
@ApiModel(description="对象")
public class Residents implements Serializable {

    @ApiModelProperty("主键，自增编号")
    @TableId
    private Integer id;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("身份证号")
    private String idName;
    @ApiModelProperty("性别")
    private String sex;
    @ApiModelProperty("出生年月")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate dateOfBirth;
    @ApiModelProperty("联系电话")
    private String phone;
    @ApiModelProperty("现居地")
    private String address;
    @ApiModelProperty("居民标签")
    private String residentLabel;
    @ApiModelProperty("关联pending_signing表")
    private Integer pendingSigningId;
    @ApiModelProperty("家庭关系")
    @TableField(exist = false)
    private List<ChengyuanVO> chengyuanList;
}
